#ifndef __SkySphere_h__
#define __SkySphere_h__

#include "Graphics/Mesh.h"
#include "Graphics/Texture.h"

namespace RayFrame
{
  class DLL_DECLARE SkyDome
  {
  protected:
    void buildMesh();

    Texture* m_texture;
    Mesh m_mesh;
    VertexBufferID m_vertices;
    IndexBufferID m_indices;

    int m_uSeg, m_vSeg;
  public:
    SkyDome(int uSeg = 32, int vSeg = 16);
    virtual ~SkyDome();

    void SetTexture(Texture* tex){ m_texture = tex; };
    void Render(double timeElapsed);
  };
};

#endif // __SkySphere_h__